Public Member Functions | |
| TPrimitiveSampler (I3DShPrimitive *primitive, const TTransform3D &transform, uint32 inUVSpaceID=kAllIDs, boolean useRenderingMesh=true, boolean useSelfSampling=false) | |
| boolean | InitSampling () |
| void | GetPoint (TVector3 &position, TVector3 &normal) |
| void | GetSamplePoint (TSamplePoint &outSample) |
| void | GetSampleInfos (const TSamplePoint &place, ShadingIn &shadingInfos) |
| real | GetTotalArea () |
| void | SetNewSeeds (uint32 fromSeed) |
Static Public Attributes | |
| static const uint32 | kAllIDs |
Protected Member Functions | |
| FacetMesh * | GetFacetMeshSource () |
Protected Attributes | |
| uint32 | fPositionSeed |
| TMCCountedPtr< I3DShPrimitive > | fPrimitive |
| TMCArray< FacetRecord > | fSortedFacets |
| TMCCountedPtr< FacetMesh > | fFacetMesh |
| TMCCountedPtr< ISelfSampler > | fSelfSampler |
| TMCArray< int32 > | fFacetSeeds |
| real | fTotalArea |
| const TTransform3D | fTransform |
| const TTransform3D | fInvTransform |
| TMCRandom | fRandomNumberGenerator |
| uint32 | fUVSpaceID |
| boolean | fUseRenderingMesh |
| boolean | fNoTransform |
|
||||||||||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
returns a point in global coordinates on the surface of the primitive
|
|
||||||||||||
|
Get the current position, normal and shading infos of a sample point
|
|
|
returns a sample point: the facet index and the coordinates in the facet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5